<h3>Syntax</h3>

Use implode() in one of the following syntax variants with $glue being the join string and $array an array of strings.

<pre>$result = implode($glue, $array);
$result = implode($array);
</pre>

<h3>Simple Examples</h3>

<pre>$csv = implode(',', $fields);
$text = implode('\n', $lines);

# Debug output array keys
print "keys: ".implode(' ', array_keys($array));
</pre>

<h3>Advanced Usage</h3>

implode() is often used in conjuction with <a href="PHP explode">explode()</a> to do something really useful.

<pre>
# Replace separator ';' with ','
$result = implode(',', explode(';', $input));
</pre>
